package com.emmmya.common;

public enum CommonPattern {

    NUMBER(0,"^(\\-|\\+)?\\d+(\\.\\d+)?$");


    private Integer code;
    private String patternStr;

    private CommonPattern(Integer code,String patternStr){
        this.code = code;
        this.patternStr = patternStr;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getPatternStr() {
        return patternStr;
    }

    public void setPatternStr(String patternStr) {
        this.patternStr = patternStr;
    }
}
